package com.mall.b2c.domain.intergral;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mall.b2c.domain.member.MemberDomain;
import com.mall.common.domain.BaseEntity;

import javax.persistence.*;
/**
 * 积分表
 *
 *
 * */
@Entity
@Table(name = "b2c_credit_integral")
public class IntergralDomain extends BaseEntity{
	@JsonIgnore private MemberDomain member; //用户

	private int site_id;//分站
	private int num;//积分


	public int getSite_id() {
		return site_id;
	}
	public void setSite_id(int site_id) {
		this.site_id = site_id;
	}

	public int getNum() {
		return num;
	}


	public void setNum(int num) {
		this.num = num;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "member_id")
	public MemberDomain getMember() {
		return member;
	}

	public void setMember(MemberDomain member) {
		this.member = member;
	}
	
}
